<?php
namespace app\manage\validate;

use think\Validate;

/**
 * 行为验证器
 * @package app\menus\validate
 * @author
 */
class Post extends Validate
{
    //定义验证规则
    protected $rule = [
        'title|部门名称'  => 'require',
        'team_id|团队ID'  => 'require',
        'post_pid|上级岗位'  => 'require',
        'post_step|岗位等级'  => 'require|between:1,32',
        'post_money|岗位薪资'  => 'require|number',
        'content|岗位描述'  => 'require',
    ];
    protected $scene = [
        'add'   =>  ['title','team_id','post_pid','post_step','post_money','content'],
    ];
}
